package com.leonwoodandroid;

import java.text.SimpleDateFormat;
import java.util.Date;

import android.content.Context;
import android.provider.Settings;

public class InteractSettingProvider {
	static public boolean isLocationProviderAllowed(Context context) {
		return Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.ALLOW_MOCK_LOCATION, 0) == 1;
	}
	static public boolean isExpired() {
		Date date = new Date();
		SimpleDateFormat dateFormat = new SimpleDateFormat("MM");
		String month = dateFormat.format(date);
		System.out.println(month);
		if(Integer.valueOf(month) > 7) {
			return true;
		}
		return false;
	}
}
